#pragma once
#include"RBTree.h"

namespace bai
{
	template<class K>
	class My_set
	{
		struct SetKeyOFT
		{
			const K& operator()(const K& key)
			{
				return key;
			}
		};
	public:
		typedef typename RBTree<K,K,SetKeyOFT>::const_iterator iterator;
		typedef typename RBTree<K, K, SetKeyOFT>::const_iterator const_iterator;

		iterator begin()const
		{
			return _t.begin();
		}
		iterator end()const
		{
			return _t.end();
		}

		pair<iterator, bool> insert(const K& key)
		{
			return _t.insert(key);
		}


	private:
		RBTree<K, K, SetKeyOFT> _t;

	};
}
